import tornado.web

class BaseHandler(tornado.web.RequestHandler):
    @property
    def static_prefix(self):
        return self.application.settings['static_prefix'] 
    
    @property
    def db(self):
        return self.application.db